home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
FROMUTS
/
ARCAUT
/
Automatons
/
Fawkes
< prev
next >
Wrap
Text File
|
1991-07-27
|
502b
|
29 lines
AUTOMATON*
Fawkes
A 256 state automaton using the Moore neighbourhood. Each cell is replaced
by the average of it's eight neighbours, either incremented or decremented
by one depending on whether the original cell has even or odd state. Try
100x50 for the window size.
INITIALISATION*
10DEF PROCdo
20*SetEval wrap on
30ENDPROC
SCREEN*
10DEF PROCdo
20PROCsoup(0,256,1)
30ENDPROC
CODE*
( READ_NEIG
SUM_NEIG 3 >>
CELL 1 AND IF (1 - ==)
ELSE (1 + ==) )
END*